package com.hezhou.oauth2.web.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hezhou.oauth2.web.entities.SysRole;

/**
 * ---------------------------
 * (SysRoleService) 系统角色逻辑层
 * ---------------------------
 *
 * @Author: [hezhou]
 * @Date: 2020/3/6
 * @Version: [1.0.1]
 * ---------------------------
 */
public interface SysRoleService extends IService<SysRole> {

    /**
     * 分页查询角色信息
     * @param page
     * @param sysRole
     * @return
     */
    IPage<SysRole> selectPage(Page<SysRole> page, SysRole sysRole);

    /**
     * 查询角色权限
     * @param roleId
     * @return
     */
    SysRole selectRolePermission(Long roleId);

    Boolean deleteById(Long id);
}
